#ifndef WIDGET_H
#define WIDGET_H

#include <QtGui>

namespace Ui
{
    class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();

private:
    Ui::Widget *ui;
    QStringList availableDriveList;
    QStringList recentList;
    QXmlStreamReader reader;
    QXmlStreamWriter writer;

    void updateUI();
    bool load();
    void save();
    void closeEvent(QCloseEvent *e);
    void initTrayIcon();

    QAction *quitAction;
    QSystemTrayIcon *trayIcon;
    QMenu *trayIconMenu;
    QMenu *mappedMenu;

private slots:
    void on_pushButtonBrowse_clicked();
    void on_pushButtonSubst_clicked();
    void on_pushButtonRelease_clicked();
    void on_pushButtonClear_clicked();
    void on_listWidgetMapped_itemDoubleClicked ( QListWidgetItem * item );
    void on_comboBoxRecent_activated(const QString &text);
    void iconActivated(QSystemTrayIcon::ActivationReason reason);
    void quitApp();
    void menuAction(QAction * action);

};

#endif // WIDGET_H
